<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>数据库管理系统</title>
	<meta name="Keywords" content="数据库管理系统" charset="UTF-8">
    <meta name="Description" content="数据库管理系统" charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.85" charset="UTF-8">
	<script src="webjars/jquery/3.3.1/dist/jquery.js"></script>
	<link rel="stylesheet" type="text/css" href="static/css/bglogin.css" >
	<!-- <link rel="icon" href="favicon.ico" mce_href="${ctx}/favicon.ico" type="image/x-icon">  
    <link rel="shortcut icon" href="${ctx}/favicon.ico" mce_href="${ctx}/favicon.ico" type="image/x-icon"> -->
	<script>
	var captcha;
	function refreshCaptcha(){  
		document.getElementById("img_captcha").src="images/securityCode.jpg?t=" + Math.random();  
	}  
	
	function check(){
     if( $("#username").val()=="" ){
    	 $("#login_main_errortip").html("请输入用户名!");
    	  return false;
     }
     if( $("#password").val()=="" ){
    	  $("#login_main_errortip").html("请输入密码!");
    	  return false;
     }
      /* if( $("#captcha").val()=="" ){
    	   $("#login_main_errortip").html("请输入验证码!");
    	  return false;
     } */
      
     if( $("#username").val().length>15 ){
    	  $("#login_main_errortip").html("请输入用户名!");
    	  return false;
     }
     return true;
    }
 </script>
</head>
<body>
	<div>
	<form id="loginForm" action="localhost:8888/databaseManage/page/login" method="post">
		<div class="login_top">
			<div class="login_title" >
				<span style="margin-left: 10px; margin-top: 10px;color: #fff"> 
					<img src="images/logo.png" />数据库管理系统
				</span>
			</div>
		</div>
		<div style="float:left;width:100%;">
			<div class="login_main">
				<div class="login_main_top"></div>
				<div class="login_main_errortip" id="login_main_errortip" >&nbsp; </div>
				<p style="color:red" th:text="${msg}" th:if="${#strings.isEmpty(msg)}">&nbsp;</p>
				<div class="login_main_ln">
					<input type="text" id="username" name="username"   />
				</div>
				<div class="login_main_pw">
					<input type="password" id="password" name="password"   />
				</div>
				<!-- <div class="login_main_yzm">
					  
					<input type="text" id="captcha" name="captcha"/> 
					<img alt="验证码" src="images/securityCode.jpg" title="点击更换" id="img_captcha" onclick="javascript:refreshCaptcha();"   />
					 
				</div> -->
				<div class="login_main_remb">
					<input id="rm" name="rememberMe" type="hidden"/>  <!-- <label for="rm"><span>记住我</span></label> -->
				</div>
				
				
				<div class="login_main_submit">
				    <input type="submit" value="" onclick="return check()"/>
				</div>
			</div>
		</div>
		
	</form>
  </div>
	 
</body>
</html>
